import java.io.DataOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class JAPI_SocketOutputStream extends DataOutputStream
{
	byte[] sendbuf = new byte[4];
	
	public JAPI_SocketOutputStream(OutputStream outs)
	{
		super(outs);	
	}

	public void sendInt(int i)  throws IOException 
	{
		sendbuf[0] = (byte)(i & 255);
		sendbuf[1] = (byte)((i>>8) & 255);
		sendbuf[2] = (byte)((i>>16) & 255);
		sendbuf[3] = (byte)((i>>24) & 255);
		write(sendbuf);
	}
}
